from rest_framework.serializers import ModelSerializer

from apps.goods.models import SKUImage
from rest_framework import serializers
from apps.goods.models import SKU
#图片的序列化类
class SKUImageViewserializer(ModelSerializer):
    class Meta:
        model = SKUImage
        fields = '__all__'



class SKUSeriazlier(serializers.ModelSerializer):
    class Meta:
        model=SKU
        fields=('id','name')

